var outOrder = {
	save : function(id) {
	         new WindowPanel({
	           id: 'saveOutOrder',
	           title: '保存出库单',
	           width: 650,
	           height: 400,
	           closeConfirm : true,
	           maximizable: false,
	           html : '<iframe name="outOrderSaveFrame" id="outOrderSaveFrame" src="'+projectName+'/product/outOrder/toSave.t4m?'+getFlushParam('saveOutOrder') + '" frameborder="0" scrolling="auto"></iframe>',
	              tbar: new Toolbar({
	                  icon: 'image/op.gif',
	                  items : [{
	                    type : 'button',
	                    text : '保存',
	                    position: {
	                      a: '-80px 0px',
	                      b: '-80px -120px'
	                    },
	                    handler : function(){
	                      submitFrameForm('outOrderSaveFrame', 'objectForm');
	                    }
	                  }]
	                })
	         });
	       },  
	view : function(id) {
        new WindowPanel({
          id: 'viewOutOrder',
          title: '查看出库单',
          width: 650,
          height: 400,
          closeConfirm : true,
          maximizable: false,
          html : '<iframe name="outOrderViewFrame" id="outOrderViewFrame" src="'+projectName+'/product/outOrder/view.t4m?'+getFlushParam('viewOutOrder')+'&object.id='+id+'" frameborder="0" scrolling="auto"></iframe>',
        });
      },    
      toCheck : function(id) {
    	  new WindowPanel({
              id: 'checkOutOrder',
              title: '出库单审核',
              width: 800,
              height: 400,
              closeConfirm : true,
              maximizable: false,
              html : '<iframe name="outOrderCheckFrame" id="outOrderCheckFrame" src="'+projectName+'/product/outOrder/toCheck.t4m?'+getFlushParam('checkOutOrder')+'&object.id='+id+'" frameborder="0" scrolling="auto"></iframe>',
              tbar: new Toolbar({
                icon: 'image/op.gif',
                items : [{
                  type : 'button',
                  text : '保存',
                  position: {
                    a: '-80px 0px',
                    b: '-80px -120px'
                  },
                  handler : function(){
                    submitFrameForm('outOrderCheckFrame', 'outOrderCheckForm');
                  }
                }]
              })
            });
          },
          update : function(id) {
        	  new WindowPanel({
                  id: 'updateOutOrder',
                  title: '出库单修改',
                  width: 800,
                  height: 400,
                  closeConfirm : true,
                  maximizable: false,
                  html : '<iframe name="outOrderUpdateFrame" id="outOrderUpdateFrame" src="'+projectName+'/product/outOrder/toUpdate.t4m?'+getFlushParam('updateOutOrder')+'&object.id='+id+'" frameborder="0" scrolling="auto"></iframe>',
                  tbar: new Toolbar({
                    icon: 'image/op.gif',
                    items : [{
                      type : 'button',
                      text : '保存',
                      position: {
                        a: '-80px 0px',
                        b: '-80px -120px'
                      },
                      handler : function(){
                        submitFrameForm('outOrderUpdateFrame', 'outOrderForm');
                      }
                    }]
                  })
                });
              }
};